<script>
  export let tag = 'div';
</script>

<svelte:element this={tag}>Foo</svelte:element>